package com.hdu.dwh.exception;

import com.baomidou.mybatisplus.annotation.TableName;

public class DataNotFoundException extends Exception {
    private DataNotFoundException(String message) {
        super(message);
    }
    public DataNotFoundException(String tableName, String message) {
        this("数据不存在，无法进行相关操作，表名：" + tableName + "，" + message);
    }

    public DataNotFoundException(TableName tableName, String message) {
        this("数据不存在，无法进行相关操作，表名：" + tableName.value() + "，" + message);
    }
    
}
